package br.com.skytef.entity;

import java.sql.Date;

public class PosData {

	private String idTicket;
	private String idOperator;
	private String idCompany;
	private String dateOccurrence;
	private String posSerial;

	private String idFare;
	private String totalFare;
	private String totalPaid;
	private String paymentMethod;
	private String paymentAct;

	private String vehiclePrism;
	private String vehiclePlate;
	private String vehicleColor;
	private String vehicleType;
	private String vehicleBrand;
	private String vehicleModel;
	private String vehicleBelongings;
	private String vehicleBreakdown;

	public String getIdTicket() {
		return ((idTicket.equals("") == true) ? "0" : idTicket);
	}

	public void setIdTicket(String idTicket) {
		this.idTicket = idTicket;
	}

	public String getIdOperator() {
		return ((idOperator.equals("") == true) ? "0" : idOperator);
	}

	public void setIdOperator(String idOperator) {
		this.idOperator = idOperator;
	}

	public String getIdCompany() {
		return ((idCompany.equals("") == true) ? "0" : idCompany);
	}

	public void setIdCompany(String idCompany) {
		this.idCompany = idCompany;
	}

	public String getDateOccurrence() {
		return dateOccurrence;
	}

	public String getDateOccurrenceFormat() {
		String year = dateOccurrence.substring(0, 4);
		String month = dateOccurrence.substring(4, 6);
		String day = dateOccurrence.substring(6, 8);
		String hour = dateOccurrence.substring(8, 10);
		String minute = dateOccurrence.substring(10, 12);
		String seconds = dateOccurrence.substring(12, 14);

		return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":"
				+ seconds;
	}

	public void setDateOccurrence(String dateOccurrence) {
		this.dateOccurrence = dateOccurrence;
	}

	public String getPosSerial() {
		return posSerial;
	}

	public void setPosSerial(String posSerial) {
		this.posSerial = posSerial;
	}

	public String getIdFare() {
		return ((idFare.equals("") == true) ? "0" : idFare);
	}

	public void setIdFare(String idFare) {
		this.idFare = idFare;
	}

	public String getTotalFare() {
		return totalFare;
	}

	public void setTotalFare(String totalFare) {
		this.totalFare = totalFare;
	}

	public String getTotalPaid() {
		return totalPaid;
	}

	public void setTotalPaid(String totalPaid) {
		this.totalPaid = totalPaid;
	}

	public String getPaymentMethod() {
		return paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	public String getPaymentAct() {
		return paymentAct;
	}

	public void setPaymentAct(String paymentAct) {
		this.paymentAct = paymentAct;
	}

	public String getVehiclePrism() {
		return vehiclePrism;
	}

	public void setVehiclePrism(String vehiclePrism) {
		this.vehiclePrism = vehiclePrism;
	}

	public String getVehiclePlate() {
		return vehiclePlate;
	}

	public void setVehiclePlate(String vehiclePlate) {
		this.vehiclePlate = vehiclePlate;
	}

	public String getVehicleColor() {
		return vehicleColor;
	}

	public void setVehicleColor(String vehicleColor) {
		this.vehicleColor = vehicleColor;
	}

	public String getVehicleType() {
		return vehicleType;
	}

	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}

	public String getVehicleBrand() {
		return vehicleBrand;
	}

	public void setVehicleBrand(String vehicleBrand) {
		this.vehicleBrand = vehicleBrand;
	}

	public String getVehicleModel() {
		return vehicleModel;
	}

	public void setVehicleModel(String vehicleModel) {
		this.vehicleModel = vehicleModel;
	}

	public String getVehicleBelongings() {
		return vehicleBelongings;
	}

	public void setVehicleBelongings(String vehicleBelongings) {
		this.vehicleBelongings = vehicleBelongings;
	}

	public String getVehicleBreakdown() {
		return vehicleBreakdown;
	}

	public void setVehicleBreakdown(String vehicleBreakdown) {
		this.vehicleBreakdown = vehicleBreakdown;
	}

}
